package 练习;

import java.util.Scanner;

public class 电价 {
    public static void main(String[] args) {
        System.out.print("用电量：");
        Scanner sc=new Scanner(System.in);
        //电费
        double money;
        //用电量
        double m=sc.nextDouble();
        if (m<=50){
            money=m*0.53;
            System.out.println("电费为："+money);
        }else if (m>50){
            money=50*0.53+(m-50)*0.58;
            System.out.println("电费："+money);
        }

    }
}
